package com.zmc.lostfound.post.vo.post;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author zmc
 * @description 用户完成帖子请求体
 */
@Data
@ApiModel("用户完成帖子请求体")
public class PostCompleteVO implements Serializable {

    private static final long serialVersionUID = 9102811518777530988L;

    /**
     * 帖子id
     */
    @ApiModelProperty("帖子id")
    @NotNull(message = "帖子id不能为空")
    @Min(value = 1, message = "帖子id必须大于等于1")
    private Long postId;

    /**
     * 寻物/认领人id
     */
    @ApiModelProperty("寻物/认领人id")
    @NotNull(message = "寻物/认领人id不能为空")
    @Min(value = 1, message = "寻物/认领人id必须大于等于1")
    private Long toUserId;

}
